<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.ISystem"%>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	IUser user = ISystem.getSessionUser(request);
	
	String id = StringTool.checkString(request.getParameter("id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>新增油票</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<script src="<%=context %>/resources/common/js/wordbook.js"></script>

<script src="<%=context %>/app/car/js/stempneu.js"></script>
<script src="<%=context %>/system/tablequery/js/tablehandler.js"></script>
<body onload="javascript:initTable('APP_CARSTAMP', '<%=id %>', 'single' , function(json){initFunc(json);})">
<form id="form1" name="form1" method="post"
	action="<%=context%>/app/clxx.do?method=save">
<input type="hidden" name="STAMP_ID" id="STAMP_ID" value="">
<input type="hidden" name="STAMP_STATUS" id="STAMP_STATUS" value="0">
<div style="margin-top:15px;margin-left:15px;">
<%if(id.equals("")){%>
<input type="button" class="button0" name="button0"
				value=" 保 存 " onclick="javascript:saveTable('APP_CARSTAMP', 'single', '', function(){return checkit();},function(){forwardFunc();});" />	
<%}else{%>
<input type="button" class="button0" name="button0"
				value=" 保 存 " onclick="javascript:updateTable('APP_CARSTAMP', 'single', '', function(){return checkit();},function(){forwardFunc();});" />
<input type="button" class="button0" name="button0"
				value=" 删 除 " onclick="javascript:deleteTable('APP_CARSTAMP', 'single', '', null,function(){forwardFunc();});" />				
<%} %>	
<input type="button" class="button0" name="button0" value=" 返 回 " onclick="javascript:window.history.back(-1);"/>		
</div>	
<fieldset style="width:800px;margin:15px;">
<legend>油票登记</legend>
<table class="tab4edit" width="700" align="center">
	<tr>
		<td class="td1" width="150">&nbsp;油票编号</td>
		<td> <input name="STAMP_NO" class="box3" type="text" id="STAMP_NO" /> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="151">&nbsp;来源</td>
		<td> <input name="STAMP_LR" class="box3" type="text" id="STAMP_LR" /> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="152">&nbsp;燃油型号</td>
		<td><select id="STAMP_TYPE" name="STAMP_TYPE" style="width:410px;"></select> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="152">&nbsp;燃油量</td>
		<td> <input name="STAMP_SIZE" class="box3" type="text" id="STAMP_SIZE" /> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="152">&nbsp;库存</td>
		<td> <input name="STAMP_KC" class="box3" type="text" id="STAMP_KC" /> <font color="red"><b>*</b></font></td>
	</tr>
	<tr>
		<td class="td1" width="153">&nbsp;备注</td>
		<td> <input name="STAMP_DESC" class="box3" type="text" id="STAMP_DESC" /> </td>
	</tr>
</table>
</fieldset>
	</form>
</body>
</html>
